allow None to be returned in JSON API handlers

I have several API handlers where I'd like to return None if no data is returned. with the code I'm proposing removing present, it would cause an error, and require hackish solutions such as returning False, [], {} etc instead.