Fix bug in iFrame finder method

The #indexOf method returns -1 if the given string is not found.