Fixed bug in AbstractBasicDao where null sort options would crash the
dojo query requests.