Fixing metadata.getValue so that deletions are also included.