fix segfault when no_images extension is active

This fixes a segmentation fault when the no_images extension was active
and an incomplete image link without URL parentheses was encountered
by the parser.  The cause was a malformed conditional expression.