bugfix: tag empty error check