added error handling to custom colour picker