Liquid error: undefined method `empty?' for nil:NilClass