[bugfix] Do not raise exception for api warnings

API warnings in logpages method lead to a blocker and all related
scripts failed. Now warning will be printed using the same code
snippet as in core and the script is kept alive.

bugfix for bug 72749

Change-Id: Id48be5ef525d7b05d4cd58f24b839375e380c99e
Merge "[bugfix] Do not raise exception for api warnings"