Fix null ref

I don't really like this change because the string is not localized.
But the null check is necessary.

Also, there are potentiallhy other places where a null intent could cause problems.