Fixed PHP error when watchdog() function called with a wrong third argument.