Bug fix for empty captions producing invalid overlay