Fixes NPE during publishing if not using multi-site.