Fix NullPointerException if API Description is not provided.

If API description is not provided (null). NullPointerException is throwing. Fix the code to check for Null.