Stray cricket balls will be stopped from blocking new builds under government plans to halt nonsensical planning advice.