now finding error element by id_error and not breaking when rules===null

Changes to get working with the messages from the server and not having a root element to find the error in.