bugfix ptsdk-1161, 1163, 1165: added proper parameter check