catch 'vulnerable-dependency-found' event from scanner to return a proper grunt error

The current version does not return a grunt error is a vulnerable was found. This hotfix fixes the behavior.