Make if statements always return success at the end, matching other
shells. Fixes #1061.