Fix parsing of MONITOR responses

Fixes #1157