Fix the exception when there is no engine result and one opens the layer view.