What is happening is that some pages are still using the old version and some are using the new version of the security assist files.
To correct the problem you can probably do a site wide find/replace:
find: WA_SecurityAssist/Helper_PHP.php
replace with: webassist/security_assist/helper_php.php