Fixed crash in device page caused by latest change in FilesController.