=str #15253 Check for null exposed pub in stop

Fixes #15253