added few checks for mandatory parameters without which requests were
failing with 400 from piwik backend