fixes native openUrl method

native implementation of openUrl method wasn't working because uiDelegate was nil