middleware.static: remove useless stored variable

For the sake of it.

Change-Id: If34e33af1e590492bec45946d863a663cb384915