fix #4181 -- initial load of code editor doesn't show format button -- which was caused by checking _get_cm, which failed due to the editor not being created yet.
fix #4181 -- initial load of code editor doesn't show format button -- which was caused by checking _get_cm, which failed due to the editor not being created yet.

DrXyzzy/smc,sagemathinc/smc,sagemathinc/smc,DrXyzzy/smc,sagemathinc/smc,tscholl2/smc,tscholl2/smc,tscholl2/smc,DrXyzzy/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc,DrXyzzy/smc