Added file.exists() check in isHtmlFileChecked(...).
Added checks against exceptions in ResourceChangeListener.