sd-bus: make sure we properly handle NULL callback functions