BUG: Fix crash when showing working directory changes

As selected commit was null and it was being passed when trying to
generate a tree to show.