SERVER-8182 getLog returns truncated lines when logUserIds=1

Make sure that appendServerExtraLogContext does not append NULL to BufBuilder.
fixed regex in log_user_basic.js #527