Handle case where buf has become unpopulated since on_load callback was set.