Fixing error when static::$translatable is not defined.