Last fix to show log only if the branch is not None

Change-Id: I4a687d3c4e303c0916551eefc07f24925f75f55b