kvm: properly check debugfs dentry before using it