Nah, just a bug. The $popups variable needed to be added to the end of the viewmessage.tpl file. Fixed for the final.