Issue #3126971 by mondrake, alexpott, longwave: Replace usage of getObjectAttribute() that is deprecated