JS: ensure errors thrown while evaluating conditionals are reported

The conditional evaluation hadn't been wrapped in a try/catch as it used to be
called from a different wrapper context, wrap it now to get a dialog box and leave
the eventmanager in a consistent state.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: filter out a local list of ObjectTypes to avoid racing with model reset

It is possible to get multiple entries for the same objecttype in the object
selector, cut off one of the racing accesses.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: update version to 2014-49

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>