Check block != nil before invoking them in imageAtURL:completionHandler:errorHandler:

it should not crash if nil is passed as a handler.