SONARPLUGINS-3386 - State is not correctly reset in several checks