check if reference image exists instead of crash, wait for GET
Merge branch 'master' of https://github.com/x3dom/x3dom