nunaliit2-couch-application: Fix issue with select element not rendering
properly. Improve error reporting when invalid id is encountered.

Issue #262