Fixed bug #597: Support null missing key for sort. Reject type