Moodle™ is a registered trademark.
Site policy | Contact
The new static method introduced in MDL-25886 does not handle NULL values correctly because isset() is used there. NULL values are allowed - for example for "imagealt" field.
Replaced isset() with property_exists() and added a unit test for this bug.
Sorry David hit the wrong button
Thanks David for reporting and fixing this issue