function processQueue () {
    queue.forEach(function (func) { $mdUtil.nextTick(func); });
    queue = [];
  }
Iterates through all queued functions and clears the queue. This is used for functions that
are called before the UI is ready, such as size calculations.