Fixed bug where the api would have null output if no method or tpl was requested