Added check for non-valid git repo entry

Author: Andrew Iovanna <and.iovanna@gmail.com>
Author: Justin Chines <justin.chines@gmail.com>
Author: Anjali Venkatesh <avenkatesh@wpi.edu>
Author: Thanaporn Patikorn <tpatikorn@wpi.edu>