Fix two bugs in PhpMessdetector Plugin

Related to issues #200 and #201