Improve app state error message.

[#72816350]