Move code around so that check for NULL happens before dereferencing (even though the check should always fail -- see comment).  This should help Coverity.
Move code around so that check for NULL happens before dereferencing
(even though the check should always fail -- see comment).  This
should help Coverity.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb