Liquid error: undefined method `sort_by' for nil:NilClass