use string find() instead of index().  Fixes #880.

We're expecting a non-match to return -1, which is what find() does,
but index() instead throws a ValueError.
Merge pull request #880 from joeshaw/pre-index-fix

Exception on WP import looking for <pre> tag