server.c: Fix crash when handler has no output
server.c: Make init_fs() handle new image creation properly