Fixed potential null reference exception when orderBy is null (in /api/trips/)