Guard against uninitialised arrays / array offsets

Merged Monish Deb requested to merge github/fork/webmaster-cses-org-uk/patch-5 into master

Created by: webmaster-cses-org-uk

Use CRM_Utils_Array::value() in place of direct array member access to prevent polluting log files with warnings and notices, which may become more serious errors in PHP 8!

Proposed fix for #188 (closed).

Tested and working on CiviCRM 5.50.4.

Merge request reports