Test for nil in the sort_order image callback