Don't die if no URL query - fixes #1 thanks @fmasuhr !