safer JQMSelect.getSelectedIndex