set selected_measure_ids to [] if it's set to nil

This works around a rails bug; see https://github.com/rails/rails/issues/8832 for more details
Merge branch 'denullify_selected_measure_id_prefs'

Rebasing and merging pull request #80