[sr-dev] git:5.0:30668abe: topoh: add additional safety checks