Fixed crash caused when browser does not support specific orientation callbacks