Fix Windows compile warning

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

Refs #9563
Merge branch 'feature/9563_beam_monitor_packets' into develop