Making device type id nullable.
Merge pull request #22 from draganglumac/master

Making device type id nullable in templates table.