Bug: missing dependencies are being reported even if there are no such

This PR fixes the two bugs introduced in 0.3.0. I believe this fix should be v0.3.1.
why do you need this as a separate function in a class? why not just cb.call() wherever it needed?