Made "trapped chest" content rollbackable

Sorry for the previous PR, two checks were left outside of the if (ca != null) statement. Anyway, feel free to adapt the code to what suits you the best. I'm merely pointing out that trapped chest content aren't rollbackable.