objectholder: Do not execute function on null objects