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