Fixes #3512: erase error in search node form when needed