BUG: Fixes #3422 revealing controller info via media extensions

Fixes a bug where appending a media file extension to a non-existent sub url results in controller info being leaked

https://github.com/silverstripe/silverstripe-framework/issues/3422