raw/skeleton: add missing check after setting attribute