Fix Null pointer in exception dialog