Add defensive checks for bad setFPS API behavior