Add null check when checking for mongoose or promises
Merge pull request #2 from dariusriggins/master

Add null check when checking for mongoose or promises