Fixed a null pointer access exception that could occur with delegates and overloaded methods.