Fix how empty fields are dropped

Closes #10.