CommitDetailsAdapter: Fix NPE

Fix a possible NPE when collapsing a group in the change
 details if the contextual action bar is not visible.

Change-Id: I844760c78a74dd6110a46b735bad727b58984f5d