Defend against non existing previous siblings of in body links

Inline link card JavaScript was throwing an error when trying to detect if the first paragraph had an image preceding it.

This may fix #1999

![ ](http://s1.developerslife.ru/public/images/gifs/84c10ece-d0cf-4d4d-b2f1-6459d924604d.gif)