Fix another problem with boolean values in SQL queries

refs #8100