Fixed a null pointer issue in the signal marshalling.