Fix an issue when ‘parameters’ object is empty on page load

This fixes issue #17.