CB-4280 handle invalid bridge mode request

During the older mobilespec bridge tests, a bridge mode was requested that did not exist. This results in attempting to parse 'undefined' to get an integer, producing an untrapped numeric exception - terminating the app.

This adds a try-catch to the parse.