An ocean survey ship which was put up for sale has now been pulled from the market by the Ministry of Defence (MoD).