Make pattern loading work on IE10.

What's the desired behavior if we have a pattern that is not in loadedPathPatterns. Right now setPattern will do nothing - is that right?
Also, in terms of style the else if should be on the same line as the close brace above it.