Made Owin dispose hook more defensive, fixes #1295
Merge pull request #1296 from grumpydev/OwinDisposeFix

Made Owin dispose hook more defensive, fixes #1295