Catch traceback caused by permissions errors during a local md5 sum

Fixes #6948