If the ship or vessel is partly constructed in one place and partly in another, either place shall be deemed the port at which she was when the debt was contracted, within the meaning of this chapter.