Check that exception message isn't null before checking for 'any is missing a mapping'

Signed-off-by: Ross Allan <rallanpcl@gmail.com>