Bugfix: Make optional the filename in get_resource_context decorator