ECMS-5395: Check if destination node is not folder before updating its mime type