Make some fixes to eviction dirty count validation routine.

This should fix the issues with Dirty validate seeing NULL or invalid btree handles.

One case I'm not sure about is the btree->bulk_load_ok flag. I think that in that case the btree handle should be valid, and it's possible that there will be dirty pages in cache, so the handle should be checked.