Juan Lang : quartz: Don't crash if sample allocation fails.