Add test for error on referencing unexistent network resource

See https://github.com/Vizzuality/cartodb/issues/906