Don't crash if scheduleLeakCheck fails for #597Signed-off-by: Ross Allan <[email protected]> (commit: 8f8fd79)