Fix Hive partition pruning for null keys

Fixes #1864