Add a NULL check into atspi_event_listener_register_from_callback