[Android] Fix the issue about onJavascriptModalDialog was not called.

This patch is to fix the issue about onJavascriptModalDialog was not called
when this function was overrided in class of XWalkUIClient.
Modify the condition for overrided function, if parameter is not the
instance of specifed, create a new instance.

BUG=XWALK-2534