MDL-25981 fix inverted instanceof in require_login