Added exception for non formID in API sample for creating question, creating submission, creating report

Added exception for non formID in API sample for creating question,
creating submission, creating report