CAPEDWARF-227 Incorrect handling of static files - Serve static file only if it actually exists