Changes for #279

- Don't include 'palette' in query string if value is an empty string
- Updated getParameterByNameFromUrlString to return null if key is not present in query string