Fixes bug where blank file field on update was throwing an exception.