I don't recall the customs agents verifying (or even being in a position to verify) a claim that you're checking your bags through. You'll presumably have boarding passes/itinerary demonstrating transit through Vienna. If the airline refuses to check all the way through I can't see customs being able to figure that out.