Implementing ACT-2089 : Task sorting on due date needs to place those with due date null after those with a duedate

Note that this is implemented in a generic way. If other queries would benefit from nulls first/last it could easily be added now.
Merge branch 'master' of https://github.com/Activiti/Activiti