AS7-6341 resolve exception because of double registration of cache entry

As Alexey agreed
https://github.com/wfink/jboss-as/commit/6dc56a28b95642194d55c9eb736b12da77f77686#commitcomment-2484898