Fixes potential PHP error in public notice organisation check.