Fixed bug that caused the build to fail for some SCMs

When using the getAffectedFiles method it can return an exception if the SCM does not implement it. This happened with TFS. I added a try catch to handle this exception. It will return null if the SCM cannot get the files but it will continue with the build.