Handle invalid node weights when mapping