Attributes with nil values should not be considered "missing".

See #858.
Also note where those attributes are considered missing or not. This is about calling `declared_params`.