Fix context bug that resulted in the popup apply styles menu showing an incorrect state.