Fix for #427 and fixing error when not adding global params to REST dispatcher

#427