Fixed an issue where checking for missing dependencies would push additional undefined entries onto the deps array