This is known bug in Sitecore version 9.0 update 2. Usually restarting the IIS site fixes it. This is immediate solution.
But if it starts occurring too often, one may want to consider applying a patch already supplied by Sitecore. https://community.sitecore.net/developers/f/8/t/10797