Fixed previous mentioned issue in JavaQueue in JavaStack.

SFH.