Fixes SERVER-9491

Upper chunk key was not written properly to the log in some places. See https://jira.mongodb.org/browse/SERVER-9491

This pull request fixes this.