Add fix for MDEV-7369

See also https://mariadb.atlassian.net/browse/MDEV-7369
Merge pull request #14 from James-TR/MDEV-7369

Add fix for MDEV-7369