Fix up pointer issues with lib/libkvm
In particular,
- avoid dereferencing NULL pointers
- test pointers against NULL, not 0
- test for errout == NULL in the top-level functions (kvm_open, kvm_openfiles, kvm_open2, etc)
Found with: devel/cocchinelle
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division