fix #171 - prevent console errors when using an AMD loader where angular is not global