Remove type and property attributes if any when there is a shiro:principal attribute.