Made commits not have expand-buttons when there is nothing to expand.