Fix assertion for string emptiness check