Makes sure that PageContextFilter methods are available in an error page (fixes StorageItem resource functions).