How do we keep UMG references from being pulled into dedicated server builds?

Hello,

After doing a bit of digging I found an issue that is similar to that of description above. It appears that this was fix in 4.8.

Make it a great day