Core/DBLayer: Fix petitions crash