Fixes #1844: Calling `Response::sendFile()` would cause sending the response twice