Do not fail when not loaded from global scope

Change-Id: I60ddf7441f1feada65ca7c4f91ebf0542163c3d5