Fixed fatals and errors which blocked our nginx routes command.
Fixed generation of insert commands with a length of zero.