Fixes #5402: Debugger was not loading when there were closures, resources or PDO instances in the logged data