Make sure the payload object is not nil.