If cleanInput receives empty array it throws exception

master is crashing on the main index.php because of this