validating that ips_layout is a dict before trying to use it
moved ips_layout check to earlier in the method, and added unit test
Merge pull request #191 from shatterednirvana/appscalefile-error-handling

validating that ips_layout is a dict before trying to use it