Fix wrong code duplication in utils.itersubclasses()

Change-Id: Ic34be7cb10b5aba723394e06ddff69cb09fe698d
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>