Fix control view crash due to uninitialized SPM

Fixes #1313

@kbenne @DavidGoldwasser 

(It also appears like my text editor got rid of extraneous whitespace at the end of lines and blank lines...)