fixes issue #34 - Failing rspec test.

On some rails versions the uniq method doesn't work as expected,
it eliminates the nil from the result set.