Fix is_package_installed() check with dpkg

Change-Id: I81b77486c2ed7717ed81cb2c2572fe6c4b394ffc
Merge branch '38127-testonly' into dt-test
Merge branch 'docker' into dt-test