LPS-39644 Upload logo causes javascript error

Hey @Robert-Frampton, here's the new pr for http://issues.liferay.com/browse/LPS-39644