[SP-1064] Validation query gets cleared after restarting the BA server (...

...5.0)