Issue #3126969 by mondrake, longwave, alexpott, daffie: Replace usage of assertAttributeInstanceOf() that is deprecated (cherry picked from commit 5bee7eac7ba372cc91e131d696d2d033a3977a26)