Allow for error messages already being on the page due to server side rendering.
… rendering. Check for existence of error message element. If not present, create it. Call addClass on parent div in all cases. Ensures class is set regardless of pre-existing state. addClass takes care of not adding the same class multiple times. Added test. #11
2 0 stable