Your comments

Hi


You should replace:


    nextHandler.handle();

by


    if (isDefined(nextHandler))
        nextHandler.handle();