fsutil: Fix lookup error handling + fix potential nil dereference