Issue #3126971 by mondrake, alexpott, longwave: Replace usage of getObjectAttribute() that is deprecated (cherry picked from commit b739bebc)