I thought that that might happen. Anyway I don't see any problem of having the the promises be resolved before the call to `_whenRenderedResolve()`. It could easily happen that when we get to `_whenRenderedResolve()` all the promises have been resolved and we are done. The only change would be to replace the proposed if asking for the counter to be greater than 0 before when adding a done callback to the promises for a flag that while true lets promises get a done callback will be set to false after `_whenRenderedResolve()` is called and all the promises are resolved (counter == 0). With this we can keep adding the done callbacks until we are ready to call `_whenRenderedResolve()`.

Anyway, if this works this can be merged like this and optimized later, or make it an Utils function/class.