ECMS-5075: Unknown error and exception when delete a unexisted metadata