Minor bug fix for connecting failure PHP warning.