Fix class not being set when invalid id (but not 0) was included in a class