How to disable adsense for this error page
use the Adsense module, you can specify pages where to display it or not to display it using : 

Show AdSense on specific pages:


Show on every page except the listed pages.
Show on only the listed pages.
Show if the following PHP code returns TRUE (PHP-mode, experts only).