Fixed getResourcesWhere to not return null when no tags are provided