clean node before applying bindings

http://manage.dimagi.com/default.asp?114054

@czue