Fix empty FileField handling (close #215).