Protect the node.js against empty fen.