Simplify error checking on volatile attributes