Prevent NPE introduced by 734fafe0 if resource patterns are not set