How to Fix Raspberry Pi's 'Cannot Currently Show the Desktop' Error

You get this error when trying to connect via VNC.