Add workaround to the backward_compatibility library when checking if current user is logged in, as it did not work.