Fix TypeError when no attrs were passed