diff --git a/src/ImageShortcodeHandler.php b/src/ImageShortcodeHandler.php
index <HASH>..<HASH> 100644
--- a/src/ImageShortcodeHandler.php
+++ b/src/ImageShortcodeHandler.php
@@ -72,7 +72,10 @@ class ImageShortcodeHandler
                 $density = (int)$density;
                 $resized = $record->ResizedImage((int)ceil($width * $density), (int)ceil($height * $density));
                 // Output in the format "assets/foo.jpg 1x"
-                $srcsetSources[] = $resized->getURL() . " {$density}x";
+                $resizedUrl = $resized->getURL();
+                if ($resizedUrl) {
+                    $srcsetSources[] = $resizedUrl . " {$density}x";
+                }
             }
         }
FIX: Prevent fatal errors when assets are missing