If user specifies a nil callback, then error out rather than crashing at runtime due to a nil reference.