Move check of update to outside if.  If the if wasn't taken, we would get a crash. Niels, how is this supposed to work?
Move check of update to outside if.  If the if wasn't taken, we would
get a crash.
Niels, how is this supposed to work?

Found by Coverity.

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