Fixed a bug involving creating branches with undefined content.

Is it worth adding a comment about what args[2] is and when/how it can be undefined?