Fix constant support of EnergyAdapter

Closes Issue 311
12 jobs for issue311 in 13 minutes and 23 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build Docker
passed #1113917
build_docker_from_cache

00:00:17

 
  Test
passed #1113919
test_mpi

00:00:19

passed #1113918
test_serial

00:05:18

86.0%
 
  Demo Runs
passed #1113926
run_bernoulli

00:00:30

passed #1113927
run_curve_fitting

00:00:28

passed #1113922
run_getting_started_1

00:00:34

passed #1113923
run_getting_started_2

00:01:01

passed #1113924
run_getting_started_3

00:02:06

passed #1113925
run_getting_started_mf

00:07:46

passed #1113920
run_ipynb0

00:01:36

passed #1113921
run_ipynb1

00:00:43

passed #1113928
run_visual_mgvi

00:01:23