utils_mount.c: check for null before dereferencing