Fix macro JS_releaseSafely bug