Fixed issues with empty resource keys.