Logistic regression: Correct problems with install-check

- Corrected the accidental clobering of an if-statement
- Corrected missing assert statement in install-check