Validating if file exists before check the md5sum.

- When a file didn't exist an exception was generated, now it
checks that before calculate the md5sum.