[PATCH 5.4 04/47] reset: Fix crash when freeing non-existent optional resets