TAP5-1689: Fix NullPointerExceptions when trying to query or clear a Grid's sort model before the paginationModel has been setup