That was a bug which got fixed with new definition updates.
Users can manually update the Windows Defender definitions by going to Windows Security > Virus & threat protection and then clicking on the 'Check for updates' link.
Or: Go to Settings > Update & Security > Check for updates.