Fix for missing items; check for item before fetching elements.