fixed IfBrickTests

Fixed testCopyIfLogicElseBrickActionMode, testCopyIfLogicEndBrickActionMode, testSelectionActionMode and testCopyIfLogicBeginBrickActionMode in class IfBrickTest by adding an if statement in UiTestUtils.acceptAndCloseActionMode which checks the android api level of the device used and changes how to get the button view accordingly.
https://jenkins.catrob.at/view/All-Categories/view/Catroid-multi-job/job/Catroid-Multi-Job-Custom-Branch-RELOADED/376/