Don't add resource to array without a 'uri'
Added feature issue154