Fix invalid visibility string comparison in project import
This resolves an ArgumentError: comparison of String with 0 failed
error where the visibility_level is stored as a string in the project
import data because the value comes directly from the Web form. This
problem happened upon creating a project from a template or restoring a
project.
We now cast the value to an integer to guard against these kinds of failures.
Edited by Stan Hu