Fix #11092:
* fix crash when invalid shapefile layer is repacked
* error out if vector file writer is invoke with an empty filename
* don't allow "Save as..." without a given filename