If we fail to open a data handle when the session already has a reference, don't decrement the reference count.

This fixes accesses after freeing data handles detected by valgrind and clang address sanitizer in test/fops.

refs #827, 816.