Avoid NPE in MergeSortDumper

canSort was checking if the descriptor is null after calling a method on it.