fix the order in which font style is checked for 'bold'
add guards in case datasource is not a proxy obj