use '==' for comparison against empty string instead of 'is'

Using `is` matches not just the string value but also the type so it doesn't match a unicode empty string `u""`.