[JBIDE-18123] fixed check for cartridge being embedded or not