Fixed bug in Frame.parse that halted communication completely on receiving frame with wrong length