xmc4xxx: Fix error propagation for erase_check callback