Make "Special:FilePath?file=.." work again

bug: 51542
Change-Id: I2418e33ebd91dc0dc6968ba003a46857ec7524d3