Fix AL2 assertions.

The NIN might be a unicode, and an 'if' needed to be an 'elif'.