BUG: Use JsonCppConfig.cmake only if the file is present.

Co-authored-by: Jamie Snape <jamie.snape@kitware.com>

@jamiesnape please review