Do I earn two energy cubes if I end my 5th register on an energy space?
Short answer: Yes.

If you end any register on a space that has an energy cube you get that cube. If you end the 5th register on an energy space you get a cube from the bank. These statuses are both checked independently.