throw meaningful exception on getCenter before setView, close #1395