Updated platform icon code

Now works with ajax binding when changing pages, and correctly handles
an error condition when no data is returned.