Fix NPE in toModel when no deviceEntity available
Resolves #6: get server-info (build hash)