added check to avoid error in firefox

According to the comments I'm not the only one with this problem.
http://www.simplygoodcode.com/2014/04/angularjs-getting-around-ngapp-limitations-with-ngmodule/