When preprocess-node.inc runs it doesn't allow for any extra values to be passed in and included. I'm mainly concerned with classes. I altered my copy with a dirty quick fix thusly:
if(!$vars['node_attributes']) {
$vars['node_attributes'] = array();
}
I suggest something similar which would prevent the need to completely override the attributes building.