Fixes #2850

https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2850