Fix for injecting UIScoped beans during initial page load (#14613)

Change-Id: Iaf6fdba52a9a7615c10e726c7c190c3b8e34fb73