Fix orm when running on node v0.6 (at least) and module not found error has no code property

This should fix the last tests failing in Travis