fix npe on different write-behind configuration among nodes

fixes #3397