Bundle: Fixes misc. issues. (#1401)

-Prevents from crashing on delete.
-Don't run when file is not checked-out by
 source-control.
Merge pull request #1410 from scabana/master

Fixing VS crash on bundle file deleted (#1401)