Fixed a bug with callback if statements where the final callback
was not generated if wait fors only occurred in the else_if clauses