Wrap inappbrowser check in try catch

otherwise it will throw an exception