Fix 0017441: PHP Notice generated by logging api