Fixes the removal of Api Doc when empty.

Signed-off-by: Jonathan Lee Slew <jlslew@scs.carleton.ca>