PION-1313: parser enters infinite loop when payload_handler is defined

From paolovolpi @ GitHub https://github.com/cloudmeter/pion/issues/21