Fixed undefined exception.
Merge pull request #63 from abztrakt/404exceptionfix

Fixed undefined exception.