prevent crash during callback route failure

Hi there! Me again :)

This patch fixes an issue where the app crashes if the callback route doesn't have the proper parameters.