Fixing bug which caused wrong exception to be thrown.
Fixing bug which caused wrong exception to be thrown.


lento/cortex,hradec/cortex,davidsminor/cortex,lento/cortex,davidsminor/cortex,hradec/cortex,danieldresser/cortex,danieldresser/cortex,hradec/cortex,appleseedhq/cortex,davidsminor/cortex,goddardl/cortex,goddardl/cortex,davidsminor/cortex,goddardl/cortex,danieldresser/cortex,appleseedhq/cortex,lento/cortex,appleseedhq/cortex,danieldresser/cortex