Also keep classes with static fields when generating an image.

If a class is initalized and has static fields, it needs to be added to
the image classes.

Test: flash a system image with an empty boot image profile
Bug: 260568122
Change-Id: I8708450ef13a266f441f7a4f646f6d8b26ea031d
1 file changed