MINOR - No Rollback effect in if statement

Tried to get rid of code dupe and found out that text_button_base.GetText() does not work in an if statement because of no_rollback. Got me confused cause it does work in the case switch. According to a developer there is no reason for the if statement to give an error.

This is what he said about it:

My working workaround