Fixed a bug where checking that a constant is 'empty', which throws a fatal error