[BUGFIX] Add NULL check for single embedded resources