Extend zend_call_function to handle method invocation.

Add a null pointer guard in the zend property getter,
as for example when the object doesn't have the given property.