Checking if MD5 is set, not to pass an 'undefined' value which aws-sdk rejects