Simplify some code

Those are already strings to start with. And I'm not sure why I'm doing
repeated null checks like that. And the unsealed offset isn't supposed to be a
string anyway. It's a number.