Fix: supress error printout when there are no remotes or commits

Signed-off-by: Miroslav Safr <Miroslav.Safr@gmail.com>