Catch RecordNotFound error. fix #3373