add extra sanity check in POD util to stop fatal crashes