Fix test fixture for Ruby 1.8.
Don't execute the block when association is empty.