Added verification of null statements before publishing.