skip invalid struct decls

don't pass invalid struct decls to getASTRecordLayout