Crash on broken internal query without index

Based on https://github.com/gjtorikian/html-proofer/issues/41#issuecomment-52594922 by @nschonni

I will try to fix it here.
Everything is renamed as suggested.