Search rendering/compile only once more robust

This makes the workaround to assure that the rendered results are compiled only once a little more robust and it increases code readability a little bit.

Now adding another dataset won't break the rendering/compile cycle.