GstPlayer: properly initialize and query duration

Check that the duration query returned TRUE before using the returned value.