Fix #1545

Add -1 handling to `is_member()` function.
https://github.com/mybb/mybb/issues/1545