Check for missing parameters

This fixes issue #1705