EZP-22732: add canonical link only if mainLocationId exists