Do not say "newer commit time" if any of the 2 commits are working copy / invalid commits

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>