Only transition to READ_STATE_END from READ_STATE_ATTR_BEGIN Fixes #835