skipBadFiles flag implemented

skipBadFiles flag implemented. Needed to use the DQMIO in production.