Fixed meta box input value error

An error was thrown if the meta box input had no value previously saved
in the DB. Added checks for this