FIX: pagequery sometimes creates empty link tags (see MrBertie/pagequery#22)
FIX: Invalid HTML output when using "snippet=plain" or "snippet=quoted"