Removed an unneeded NULL when initializing std::function.