Fix for new headnodes not including themselves

This is a fix so that brand new headnodes will always include themselves in the return of get_head_nodes. This is the more correct behavior than the simple check for empty list.