Check for error key before parsing payload

Fix https://github.com/balanced/balanced-java/issues/71