safe_ggplot function

Safely render a ggplot in Shiny application