ng-options is evaluated before ng-if causing invalid "null"