Check for nil in _push pointer functions.

Pushes nil to Lua in that case.