Add INSIST to pubattr fetching where null might occur in therory. Make sure null is never dereferenced. (cherry picked from commit fe9ef0d9)