[FIX] Fix #has_attribute? on persistent models.