fix(Angular.js): not serializing null values

toKeyValue should not serialize a value if that value is set as null.