[BUGFIX] Webserver serves empty files correctly now

Also removes some obsolete code for webserver