Use H5LTpath_valid for containership testing

Addresses #388.  I believe this is the only place in the API where we're still relying on disabling error reporting.