Fix ActiveRecord to_sql bug which thrown exception when binds = []