selected_objects does not exist at rendertime. 

this breaks layouts using existing bmesh viewer, but layouts can be imported and they work OK from my preliminary tests. This change is necessary. *ducks from flying objects*