Fixed a bug were a shadow request with invalid input was sent to at theme switching