Fixed crash when no task param records are found.