Return null if association attributes are blank instead of causing error