Historic West Palm Beach courthouse saved from demolition