Tweak layout.
Help static analyzer in understanding code.

A static analyzer doesn't understand Emsg(M_ERROR_TERM, ...) so lets put
the rest of the code into the else part of the if so things can be
understood by the analyzer and the basic code path doesn't change much.