Fix issue with setting a model on an element that contains a child that is a comment node.

Cherry pick 31a9f2a2f1ec89912c1694c73c323fe00491184e

BUG=https://github.com/toolkitchen/mdv/issues/6
TBR=rafaelw

Review URL: https://codereview.appspot.com/7281048