Fix @somatonic issue #435 with undefined notices in debug mode.