Fix for empty command resource serialization