HG-347: Check if linkhref is set in the array

`$image['linkhref']` is rarely set, which causes a lot of notices in the logs. This PR adds a check and default value for `linkhref` :art: