Update plugin. Stop recursion when using sendErrorPage method