LPS-48586 Return when linkedToLayoutUuid is null - no reason to continue

Hey Brian,

This is a very small bugfix. When the UUID is null we shouldn't continue here.

Thanks,

Máté