now finding error element by id_error and not breaking when rules===null
Merge pull request #17 from HSWebteam/find_errmessage_by_id

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