Init: fix parsing URLs to stack/tool states

Commit 1a86ea1a069a517bdbe06cf0f497a69edc859254 replaced non-functional
deletes on variables by setting to undefined. In `realInit`, the parsing
for project/stack URLs was checking the wrong, project-less variables
when removing these parsed values. Since `delete` on variables does
nothing, this mismatched checking had no effect. When replaced with
functional code, it broke URL parsing. Instead, check the correct
variables for NaN when parsing these parameters.