Return a proper WP_Error instance when we can't update the mapping

refs #90