Fix crash due to uncaught custom title bar exception