-Fixing an issue where a ClassCastException occurs when deviceCapability...

-Fixing an issue where a ClassCastException occurs when deviceCapability.getCapability(IOSCapabilities.UI_SDK_VERSION_ALT) returns a JSONArray.

-Added a Null pointer check to avoid NPE when deviceCapability.getCapability(IOSCapabilities.UI_SDK_VERSION_ALT) returns NULL