Fixed fatal error when reference isn't passed in payload.