Add isset check for sizes

Fix for media upload issue