Fix major bug when writing else_if statements
Writing an else_if statement caused a null pointer exception.
This was due to dropping a marker before knowing if the statement checked
out properly.
Closes #27.