Fix array_unshift error in Application.php