remove check for 'object' in height var

Check for 'object' is unnecessary, and should check for height attribute and proper value in height attribute regardless if object or not.