When empty options passed to having clause having_values was [nil] but should be empty.
Merge pull request #10317 from arabonradar/ar_having_values_bug_fix

ActiveRecord having clause bug fix