Fixed initialize() method for objects without ready() method

If ready() method is not defined in the object, initialization fails.