fix crash for inline images without title or alt