Valium user has conviction quashed