Fix digest error on language change

 [#1464]

In this PR, we make sure that the hasLayerResults variable is set asyncronously.

$timout with 0s ensures that the changes to the scope will occur as soon as possible in the call stack.

This can be tested here:
http://mf-geoadmin3.int.bgdi.ch/gal_search_digest_errors/src/