Test case for registering NULL data structure.
Fixed bug of pushing back a singular iterator in result set.
The iterator was never used, we just did it to go on with
NULL handling, but still this instruction triggers undefined
behavior at runtime. The result set tries to copy-construct
the singular iterator; this is undefined behavior.
Tests successful.