diff --git a/autoload.php b/autoload.php
index 1e5ad34..314fca5 100644
--- a/autoload.php
+++ b/autoload.php
@@ -11,4 +11,14 @@
  * @see core/modules/statistics/statistics.php
  */
 
-return require __DIR__ . '/vendor/autoload.php';
+$autoloader = @include __DIR__ . '/vendor/autoload.php';
+
+// Check if the autoloader was found correctly.
+if (!$autoloader) {
+  header('500 Internal Server Error');
+  print 'You must set up the project dependencies using <code>composer install</code>.' . PHP_EOL .
+        'Refer to the <a href="https://www.drupal.org/documentation/install/download#git">the Drupal installationg guide</a> for instructions on installing with Composer.';
+  exit();
+}
+
+return $autoloader;
