Infobox: Check if entities isn't undefined

Change-Id: I813023e3077ebbf870eff9723744a984ef2ddb74
Task: T75701
Merge "Infobox: Check if entities isn't undefined"