fix crashes due to previous series of edits & merges. Tested & working.
fix crashes due to previous series of edits & merges. Tested & working.

GerHobbelt/jquery-multiselect,GerHobbelt/jquery-multiselect,GerHobbelt/jquery-multiselect