make sure the active homepage layout is actually available before registering it
wp_filesystem should be a global in this case