Add check for nullptr in _push pointer functions.