fixes layer not visible after fulltextsearch result selection

same as #457 but on 1.3 branch