Perform test and early return before dereferencing incorrectly. This fixes yet another crash on Solaris.
Perform test and early return before dereferencing incorrectly.
This fixes yet another crash on Solaris.

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