Protection against bad data query.