Fix bug, with input fields that have no id

If the target input field has no id the monthpicker fails with a JS-error.

I think I fixed this with patch, but it may need some testing. It is working for me though.