Added some null checks when creating global tag maps.