Prevents stacks from rendering if no base tile exists

Fixes an issue where wallpapers with no similar entries would still try
to render the "tile.html" snippet, even though the ``wallpaper``
variable would be ``None``.