Add checks for existing ObjectStorage before add and remove items

Status Job ID Name Coverage
  Test
passed #13978
test:php

00:00:18

passed #13977
allowed to fail
test:typoscript

00:00:23

passed #13979
test:unit

00:00:23

 
  Build
passed #13980
build

00:00:31

 
  Layout
passed #13981
layout

00:01:49