[WFLY-405] validate history before applying or rolling back a patch