Fix Windows compile warning

The MS compiler didn't like me casting the results of a bitwise AND to a
bool.

Refs #9563