Fix infinite recursion when a file is invalid (corrupted, empty, or mid-write)
Fix infinite recursion when a file is invalid (corrupted, empty, or mid-write)

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt