Fixing the onlyIf closure for Publish tasks, adding more logging to ease debugging for future.

Fixed 2 wrongly logged values in the publish task OnlyIf closures.

Adding changelog.