Added check to BUGMonster output for debug builds. See #309
Fixes #308