fixes #136 - lookup with '.html' does not give proper error message.