Added more logic to attribute rendering for null and false