adding thumbnail checks

currently, `wpsc_the_product_thumbnail` has no fallback if the secondary check for a `thumbnail_id` fails. this returns the `wpsc_product_image` (which includes the global fallback image) if no ID is found. also adds an `isset` check for the height and width in attachment metadata and makes sure they aren't zero.