[PATCH 2/2] Fix error handling when new device ends up with size 0.