Handle index creation with empty body

Signed-off-by: chatgris <julien.boyer@af83.com>