Fix handling when no state file was found