Fix bug where a device wasn't checked when a new study is created

The previously used checkbox wasn't checked when a device for a study
has been selected.