Remove invalid assertions (empty string is semantically equal to ".").