Remove nulls from PDO connection string generation