[PATCH 4/5] bluetooth: fix crash by removing record