legacy: fix for static file handler

* Addresses issue with empty filename in legacy static file handler.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>