Fix auto whitelist

Change negation of $last_was_successful so that whitelisting will actually work as documented.