application handlerForRequest bug fix

Fixes a bug that would prevent properly loading of static resurces that have attributes at the end of the path

Signed-off-by: Amedeo Mantica <amedeo.mantica@insigno.it>