Fix releasing the node pixes memory when closing the document
KisNodeFilterProxyModel should not store any pointers after the image has been closed.
CCBUG:364848