Fixed bug with handling filter exceptions in resource handler