Fixes for compliance with karma => 0.11

Hey there,

I fixed your plugin to work with the latest version of karma. 

This should resolve 2 issues on your project that others have submitted.