Fixed #887: AgaviDatabase::getName() always returns false