Fix #35 with queryCommandState.