Fixed wrong non-null-check in EndPutFile: sha1 is optional, now!