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/6cc9712e-aede-4f85-b23d-aedc8ea9126c.gif)