Added logic to handle alternative type of malformed payload (#29).