5317: Compare of a non existing objects in basketcontents.tpl on Azure theme. Added check if elements are not null before comparing their methods