Remove use of IsDefined for attributes which seems to deadlock in Windows Store clients