loop: fix NULL dereference if mount fails