Bug 6918: Edit ErrorSeverity and ErrorType from() method to accept lowercase strings