Handle empty begin statement correctly