Update RandomizedQueue.java

resolve NullPointException;
all tests passed. :-)