Prevent message when committing from stating `undefined`