Fixed issue when angular.module(foo) was found after angular.module(foo,[])