Fix the bug with corrupted search context value "ctx" while during xpath search

avoiding bad syntax in case of context is empty string