#1168 Added buildWithEmptyParameters option

Pullrequest for #1168