Fix apidoc generation

Addressing 'undefined method `expected_type' for nil:NilClass'