Only grab the first matched fragment in varnishncsa

Fixes: #1462