bug: Check to make sure $ost is initialized

Addresses issue #1455