Consistency and derangements in brane tilings