Fixed a bug involving creating branches with undefined content.