Unless otherwise provided by law, a person who is convicted of being an accessory after the fact to a felony is guilty of a felony and on conviction is subject to the lesser of:
(1) imprisonment not exceeding 5 years; or
(2) a penalty not exceeding the maximum penalty provided by law for committing the underlying felony.