Fixed incorrect exception thrown for missing EM
Merge pull request #38 from jdudek/patch-1

Fixed incorrect exception thrown for missing EM