Edited isVisible function in rikaitan.js

Fixed an error that would cause the extension to frequently hang in
processing the text and showing the popup.