New: automatically switch back to master if current branch is invalid

This change is for some of our special users.

if they somehow end up on a strange branch, we politely push them back to master so they can continue to receive our amazing new features.

@markus101 @Taloth