Don't register an instance before checking for resource availability.

This caused a bug where a DEA could not run an instance unless it had
2x the requested memory free.

[#81721664]