[#5854] Make Tree._lcd_map handle bad LastCommit entries better

Signed-off-by: Cory Johns <johnsca@geek.net>