Fixed display blank option label if foreignKey query does not return any values

This is because of the next few lines comparing if `options` is an array which it is not.