Fixed getClasses error handling on @import nodes.
Merge pull request #251 from spohlenz/fix-getclasses-error-handling

[3.x] Fix DomUtils.getClasses error handling on @import nodes