There is a reg file you can create and launch to fix this issue. Open Notepad and paste the following code. Go to File > Save as and type FIX_HP as name, then select the file type to All. Add .REG after the file name and merge the REG file. Reboot the PC and the error should disappear.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.hta]
[-HKEY_CLASSES_ROOT\htafile]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta]
[HKEY_CLASSES_ROOT\.hta]
"PerceivedType"="text"
@="htafile"
"Content Type"="application/hta"
[HKEY_CLASSES_ROOT\.hta\PersistentHandler]
@="{eec97550-47a9-11cf-b952-00aa0051fe20}"
[HKEY_CLASSES_ROOT\htafile]
"EditFlags"=dword:00100000
@="HTML Application"
"FriendlyTypeName"="@C:\\Windows\\System32\\mshta.exe,-6412"
[HKEY_CLASSES_ROOT\htafile\CLSID]
@="{3050f4d8-98B5-11CF-BB82-00AA00BDCE0B}"
[HKEY_CLASSES_ROOT\htafile\DefaultIcon]
@="C:\\Windows\\System32\\mshta.exe,1"
[HKEY_CLASSES_ROOT\htafile\Shell]
[HKEY_CLASSES_ROOT\htafile\Shell\Open]
[HKEY_CLASSES_ROOT\htafile\Shell\Open\Command]
@="C:\\Windows\\System32\\mshta.exe \"%1\" %*"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta\OpenWithProgids]
"htafile"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hta\UserChoice]
"Progid"="htafile"