Update MessageController.php

Fixed order of checking config `format` property