Check for bad M2M IDs.