fix authchoice.js

Typically such checks are used when iterating object properties avoiding its prototype properties. Not sure if it's appropriate here.