dont set sharedLayout var if the layout not exist

Authored by mvourlakos on May 2 2019, 9:56 PM.