Suporting nil values in a table with associations