[FaceRest] Check refCount of ResourceHandler more strictly

github issue #237