Fix mysql Exception Shown on Page Type Add

Fix mysql exception show on attempted duplicate page type handle
addition.

- Check for existing page type by handle and return error if found
Merge pull request #1304 from mkly/fix_mysql_error_on_page_type_duplicate_add

Fix mysql Exception Shown on Page Type Add